package com.feihong.txgw.json.kaika;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Sabirjan on 2017/7/4.
 * TXGWApp.
 * 飞宏电子
 */

public class PhoneNumList {


    /**
     * code : 200
     * data : [{"id":"419545","phonenum":"13029981611","r_type":"e_AA","icp_id":"1","type":"1","order_sn":"","locktime":"0","region_id":"457","region_name":"乌鲁木齐市"}]
     * msg : 获取成功
     */

    private int code;
    private String msg;
    private List<PhoneNumItem> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<PhoneNumItem> getData() {
        return data;
    }

    public void setData(List<PhoneNumItem> data) {
        this.data = data;
    }

    public static class PhoneNumItem implements Parcelable{
        /**
         * id : 419545
         * phonenum : 13029981611
         * r_type : e_AA
         * icp_id : 1
         * type : 1
         * order_sn :
         * locktime : 0
         * region_id : 457
         * region_name : 乌鲁木齐市
         */

        private String id;
        private String phonenum;
        private String r_type;
        private String icp_id;
        private String type;
        private String order_sn;
        private String locktime;
        private String region_id;
        private String region_name;

        protected PhoneNumItem(Parcel in) {
            id = in.readString();
            phonenum = in.readString();
            r_type = in.readString();
            icp_id = in.readString();
            type = in.readString();
            order_sn = in.readString();
            locktime = in.readString();
            region_id = in.readString();
            region_name = in.readString();
        }

        public PhoneNumItem() {
        }

        public static final Creator<PhoneNumItem> CREATOR = new Creator<PhoneNumItem>() {
            @Override
            public PhoneNumItem createFromParcel(Parcel in) {
                return new PhoneNumItem(in);
            }

            @Override
            public PhoneNumItem[] newArray(int size) {
                return new PhoneNumItem[size];
            }
        };

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPhonenum() {
            return phonenum;
        }

        public void setPhonenum(String phonenum) {
            this.phonenum = phonenum;
        }

        public String getR_type() {
            return r_type;
        }

        public void setR_type(String r_type) {
            this.r_type = r_type;
        }

        public String getIcp_id() {
            return icp_id;
        }

        public void setIcp_id(String icp_id) {
            this.icp_id = icp_id;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getOrder_sn() {
            return order_sn;
        }

        public void setOrder_sn(String order_sn) {
            this.order_sn = order_sn;
        }

        public String getLocktime() {
            return locktime;
        }

        public void setLocktime(String locktime) {
            this.locktime = locktime;
        }

        public String getRegion_id() {
            return region_id;
        }

        public void setRegion_id(String region_id) {
            this.region_id = region_id;
        }

        public String getRegion_name() {
            return region_name;
        }

        public void setRegion_name(String region_name) {
            this.region_name = region_name;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(id);
            parcel.writeString(phonenum);
            parcel.writeString(r_type);
            parcel.writeString(icp_id);
            parcel.writeString(type);
            parcel.writeString(order_sn);
            parcel.writeString(locktime);
            parcel.writeString(region_id);
            parcel.writeString(region_name);
        }

        @Override
        public String toString() {
            return "PhoneNumItem{" +
                    "id='" + id + '\'' +
                    ", phonenum='" + phonenum + '\'' +
                    ", r_type='" + r_type + '\'' +
                    ", icp_id='" + icp_id + '\'' +
                    ", type='" + type + '\'' +
                    ", order_sn='" + order_sn + '\'' +
                    ", locktime='" + locktime + '\'' +
                    ", region_id='" + region_id + '\'' +
                    ", region_name='" + region_name + '\'' +
                    '}';
        }
    }
}
